package ComputerOrganization;

/**
 * @Author maojiangyue
 * @Date 2025/10/10
 * @Description
 */
public class Memory {
    private int capacity;
    private String type;

    public Memory(int capacity, String type) {
        this.capacity = capacity;
        this.type = type;
    }

    public void load() {
        System.out.println("内存 [" + type + " " + capacity + "GB] 正在加载数据");
    }

    public void storeData(String data) {
        System.out.println("内存存储数据: " + data);
    }
}
